package com.yonyou.pmclouds.discuss.itf;

import com.yonyou.pmclouds.basecom.exception.BusinessException;
import com.yonyou.pmclouds.discuss.entity.DiscussionVO;

import java.util.Map;

public interface DiscussInternalOperation {
    DiscussionVO queryByDiscussId(String discussId);

    DiscussionVO[] queryByRelateId(String relateKey, String pkTenant);

    void insertDiscussion(DiscussionVO discussion) throws BusinessException;

    Map<String, Integer> countDiscussion(String[] keys) throws BusinessException;

    void deleteDiscussion(String discussId);
}
